<?php

$db_host = "localhost";
$db_user = "root";
$db_password = "";

class db_Connection
{

var $conn;

	function Connect()
	{
		$conn = mysql_connect($db_host, $db_root, $db_password);
	
		if (!$conn) {
	echo "Unable to connect to DB: " . mysql_error();
	return false;
	exit;
		}
		if(!mysql_select_db('qtracker'))
		{		
			header("Location: setup.php");
			exit();
		}
		return true;
	}

	function Disconnect()
	{
		mysql_close($conn);
	}

}